package com.bwie.common.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：Minxiao Hao
 * @Description:
 * @name：ArticleRequest
 * @Date：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleRequest {
    /**
     * 标题
     */
    private String articleTitle;
    /**
     * 发布人
     */
    private String loginId;
    /**
     * 创建开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date beginArticleTime;
    /**
     * 创建结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date endArticleTime;


    private Integer pageNum = 1;
    private Integer pageSize = 2;
}
